<?php

class Transaction {
	
	public $id;
    public $scan_code;
	public $source;
	public $target;
    public $action;
	public $confirm;
    public $user1;
	public $user2;
	public $amount;
	public $income;
    public $begin_time_stamp;
	public $finish_time_stamp;
	public $code;
	public function __construct($id,$scan_code,$source,$target,$action,$confirm,$user1,$user2,$amount,$income,$begin_time_stamp,$finish_time_stamp,$code)  
    {


       
    	$this->id=$id;
	    $this->scan_code=$scan_code;
    	$this->source=$source;
    	$this->target=$target;
    	$this->action=$action;
    	$this->confirm=$confirm;
    	$this->user1=$user1;
    	$this->user2=$user2;
    	$this->amount=$amount;
    	$this->income=$income;
	    $this->begin_time_stamp=$begin_time_stamp;
	    $this->finish_time_stamp=$finish_time_stamp;
		$this->code=$code;
	
	}
	

}

?>